{% extends '__base.tpl' %}
{% block head %}
{{ super() }}
<!-- build:css -->
<link rel="stylesheet" href="../../../public/css/other/wangEditor.css">
<link rel="stylesheet" href="../../../public/css/other/wangEditor-extend.css">
<link rel="stylesheet" type="text/css" href="../../../public/css/page/popup.css" />
<link rel="stylesheet" type="text/css" href="../../../public/css/page/answer.css" />
<!-- endbuild -->
{% endblock %}

{% block middle %}
<div id='middle' data-uptype="project">
    <div class="center">
        <a target="_blank" href="/project_rule.html" >
            <img width="682px" src="../../../public/images/project_process.png" alt="process">
        </a>
    </div>
    <div class="putQuestions" style="margin-top:5px;" onclick="BASE.PROJECT.showPopup(this)">
        我要发布新项目...
        <button class="blue-change-btn common-btn">
            <img src="../../../public/images/pen.png" class="vmiddle" alt="pen">
            发布项目
        </button>
    </div>
    <!------------------列表start---------------------------------->
    <div class="listCon" id="middleListContent">
        <ul class="content ">
            {%if data.list.list.length>0%}
            {% for item in data.list.list %}
            <li>
               <h3 class="title">
                   <a target="_blank" href="/{{item.id}}/project_content.html">
                       {{item.title|safe}}
                       {%if item.price >0 %}
                          <span class="font13 red">
                              已付{{item.priceType|projectPayType}}{{item.price}}元
                          </span>
                       {%endif%}
                   </a>
               </h3>
               <div class="desc">
                   {%if item.status|projectStatus%}
                   <i class="listIcon listIcon{{item.status}} mr10">{{item.status|projectStatus}}</i>
                   {%endif%}
                   <a target="_blank" href="/{{item.sendMemberId}}/userInfo.html">
                       {%if item.sendMemberId %}
                       <img src="{{item.sendHeader|imgPath}}" class="userImg" style="margin-left: 0" />
                       {%endif%}
                       {{item.sendNickName}}
                   </a>
                   · <span class="clo6">{{item.clickCount}}次浏览</span>
                   · <span class="orange">{{item.commentCount}}跟帖</span>
                   ·  {{ item.createDateTime|toTimeStr}}
               </div>
            </li>
            {%endfor%}
            {% else %}
            <li class="no-data">
                {% include '__no_data.html' %}
            </li>
            {%endif%}
        </ul>
        <div class="loading">正在加载中...</div>
        <div class="nomore-data">---到底了---</div>
    </div>
    <script id="middleListContent_tpl" type="text/html">
        <% each data as item i %>
        <li>
            <h3 class="title">
                <a target="_blank" href="/<%item.id%>/project_content.html">
                    <% item.title%>
                    <%if item.price >0 %>
                          <span class="font13 red">
                              已付<%=projectPayType(item.priceType)%><%item.price%>元
                          </span>
                    <%/if%>
                </a>
            </h3>
            <div class="desc">
                <a target="_blank" href="/<%item.sendMemberId%>/userInfo.html">
                    <%if item.sendMemberId %>
                    <img src="<%=imgPath(item.sendHeader)%>" class="userImg" style="margin-left: 0" />
                    <%/if%>
                    <%item.sendNickName%>
                </a>
                <%if projectStatus(item.status) %>
                <i class="listIcon listIcon<%item.status%>"><%=projectStatus(item.status)%></i>
                <%/if%>
                · <span class="clo6"><%item.clickCount%>次浏览</span>
                · <span class="orange"><%item.commentCount%>跟帖</span>
                ·  <%=toTimeStr(item.createDateTime)%>
            </div>
        </li>
        <%/each%>
    </script>
    <!------------------列表end---------------------------------->
</div>
{% endblock %}

{% block right %}
<!--右侧板块-->
{% include '__indexRight_memberCard.html' %}
{% include '__indexRight_search.html' %}
{% include '__indexRight_daren.html' %}
{% endblock %}

{% block footer %}
{{ super() }}
{% include '__popup_project.html' %}
{% endblock %}

{% block script %}
{{ super() }}
<!-- build:js -->
<script src="../../../public/js/page/plugin/wangEditor.js"></script>
<script src="../../../public/js/page/plugin/wangEditor-extentd.js"></script>
<script src='../../../public/js/page/common/uploadAnswer.js'></script>
<script src='../../../public/js/page/project/project_common.js'></script>
<script src='../../../public/js/page/project/project.js'></script>

<!-- endbuild -->
{% endblock %}